package com.battle.project;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.ConfigurableApplicationContext;

@SpringBootApplication
@EnableFeignClients
public class UserWebApplication {

    public static void main(String[] args) {

        ConfigurableApplicationContext applicationContext = SpringApplication.run(UserWebApplication.class, args);
        String sex = applicationContext.getEnvironment().getProperty("user.sex");
        String phone = applicationContext.getEnvironment().getProperty("user.phone");
        String age = applicationContext.getEnvironment().getProperty("user.age");
        String name = applicationContext.getEnvironment().getProperty("user.name");
        System.err.println("user name :" + name + "; age: " + age + "; sex: " + sex + "; phone: " + phone);
    }

}
